package cn.shoukaiseki.sjf4j.fastjson;

import cn.shoukaiseki.sjf4j.node.NumberType;

public class FastjsonIntNode extends FastjsonNumericNode<Integer>{

    public FastjsonIntNode(Integer value) {
        super(value);
    }

    @Override
    public NumberType numberType() {
        return NumberType.INT;
    }

    @Override
    public boolean asBoolean() {
        return value != 0;
    }
}
